package com.course.business;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;

//扫描子包的注解，当别的jar是就会重新写@ComponentScan进行配置,所以就是共同的包名路径才可以
@SpringBootApplication
@EnableEurekaClient
@MapperScan("com.course.server.mapper")
@ComponentScan("com.course")
public class BusinessApplication {
    public static void main(String[] args) {
        SpringApplication.run(BusinessApplication.class, args);
    }
    //
    // private static final Logger LOG = LoggerFactory.getLogger(SystemApplication.class);
    //
    // public static void main(String[] args) {
    //     SpringApplication app = new SpringApplication(SystemApplication.class);
    //     Environment environment = app.run(args).getEnvironment();
    //     LOG.info("启动成功！！！");
    //     LOG.info("System的地址：\thttp://127.0.0.1:{}",environment.getProperty("server.port"));
    // }
}
